/*
 * @Author: your name
 * @Date: 2021-06-29 08:46:28
<<<<<<< HEAD
 * @LastEditTime: 2021-07-03 10:47:34
 * @LastEditors: Please set LastEditors
=======
 * @LastEditTime: 2021-07-01 20:09:27
 * @LastEditors: jiangsx
>>>>>>> f86070d101c87dab535303764a2f6f1cbaba6cea
 * @Description: In User Settings Edit
 * @FilePath: \briup\day15\mobile-app\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/index')
  },
  {
    path: '/',
    name: 'Home',
    component: () => import('@/views/Home'),
    children: [
      // 首页路由
      {
        path: 'index',
        name: 'Index',
        component: () => import('@/views/homepage/index')
      },
      // 订单路由
      {
        path: 'order',
        name: 'Order',
        component: () => import('@/views/order/Order')
      },
      // 收益路由
      {
        path: 'money',
        name: 'Money',
        component: () => import('@/views/money/index')
      },
      // 我的路由
      {
        path: 'mine',
        name: 'Mine',
        component: () => import('@/views/mine/index')
      },
    ],
  },
  // 实名认证路由
  {
    path: '/certification',
    name: 'Certification',
    component: () => import('@/views/mine/certification')
  },
  // 个人信息路由
  {
    path: '/info',
    name: 'Info',
    component: () => import('@/views/mine/info')
  },
  // 首页订单详情路由
  {
    path: '/Details',
    name: 'Index',
    component: () => import('@/views/homepage/Details')
  },
  // 订单详情路由
  {
    path: '/orderdetails',
    name: 'OrderDetails',
    component: () => import('@/views/order/OrderDetails')
  },
]

const router = new VueRouter({
  // mode: 'history',
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
